<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>${accounts}
<%--
循环所有list中的账户数据
--%>
<table align="center" width="600" border="1">
    <tr>
        <th>账户编号</th>
        <th>账户名称</th>
        <th>账户金额</th>
        <th>备注</th>
    </tr>
    <%--
    取数据的类型，对象，集合，map，数组...
    --%>
    <c:forEach items="${accounts}" var="account">
        <tr align="center">
            <td>${account.id}</td>
            <td>${account.name}</td>
            <td>${account.money}</td>
            <td>${account.desc}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
